#!/bin/bash

# 进入项目目录
cd "$(dirname "$0")/.."

# 安装swag
go install github.com/swaggo/swag/cmd/swag@latest

# 生成swagger文档
swag init -g cmd/main.go --parseDependency --parseInternal

# 生成API文档HTML
swag fmt

echo "API文档已生成" 